<!DOCTYPE html>
<html>
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>System Error!</title>
    <style type="text/css">
    h1  {font-size: 32px; color: #f00;}
    .exceptioninfo {padding: 15px; background: #f5f5f5;}
    .exceptioninfo table {width: 100%; border: 1px solid #FFCC99; border-right: none;border-bottom: none;}
    .exceptioninfo table th,.exceptioninfo table td {text-align: left;border-bottom: 1px solid #FFCC99; border-right: 1px solid #FFCC99; padding:5px; font-size: 16px;}
    .exceptioninfo td {background: #FFFFCC;}
    .exceptioninfo th {background: #fff;}
    </style>
</head>
<body>
    <div class="body">
        <h1>IPHP System Error</h1>
        <div class="exceptioninfo">

<?php
    while ($ex->getPrevious()) {
        $ex = $ex->getPrevious();
    }
?>
            <table cellspacing="0">
                <thead>
                    <tr>
                        <th>NO.</th>
                        <th>File</th>
                        <th>Line</th>
                        <th>Message</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td><?php echo str_replace($_SERVER['DOCUMENT_ROOT'], '', $ex->getFile() ); ?></td>
                        <td><?php echo $ex->getLine(); ?></td>
                        <td><?php echo $ex->getMessage(); ?></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

</body>
</html>